<%@page import="org.springframework.beans.factory.annotation.Autowired"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
 <%-- <%
 	NoticeService service;
	for(int i=1;i<=500;i++) {
		NoticeVO article=new NoticeVO();
		article.setSubject("공지사항입니다-"+i);
		article.setContents("공지사항내용입니다-"+i);
		article.setTopview("0");

	}
%>  --%>
<%--   <%
	for(int i=1;i<=500;i++) {
		QnaTO article=new QnaTO();
		article.setName("관리자");
		article.setEmail("firstTeam@naver.com");
		article.setSubject("문의합니다-"+i);
		article.setPasswd("1234");
		article.setContents("상품에대해궁금한게있습니다-"+i);
		QnaDAO.getQnaDAO().insertQna(article);
	}
%>   --%>
<%-- <%
for(int i=1;i<=500;i++) {
		MemberTO article=new MemberTO();
		article.setM_id("member"+i);
		article.setName("회원"+i);
		article.setPasswd("1234");
		article.setZipcode("135-080");
		article.setAddress1("서울 강남구 역삼동");
		article.setEmail("member@naver.com");
		article.setAddress2("보라매아파트1002동1003호");
		article.setTel("02-1588-5588");
		article.setPhone("010-1588-3082");
		article.setEmail("test@naver.com");
		article.setRecom("오창중강사님");
		MemberDAO.getMemberDAO().insertMember(article);
	}
%> --%>

<!-- public int noticeInsert(NoticeTO notice) {
		Connection con=null;
		PreparedStatement pstmt=null;
		int rows=0;
		try {
			con=getConnection();
			String sql="insert into notice_board values(?,'관리자','',"
					+ "'firstTeam@naver.com',?,sysdate,0,?,?)";
			
			int  number = getMaxNum();
			number++;
			pstmt=con.prepareStatement(sql);
			pstmt.setInt(1, number);
			pstmt.setString(2, notice.getSubject());
			pstmt.setString(3, notice.getContents());
			pstmt.setString(4, notice.getTopView());
		
			rows=pstmt.executeUpdate();
		} catch(SQLException e) {
			System.out.println("noticeInsert 메소드 오류 = "+e.getMessage());
		} finally {
			close(con, pstmt);
		}
		return rows;
	} -->
데이타를 1000개 저장하였습니다.
